package desgin.pattern.behavior.command.sample;

/**
 * 
 * @Type OperationChangeChannel
 * @Desc 命令实现者(ConcreteCommand)
 * @author shuai.zuo
 * @date 2015年3月9日
 * @Version V1.0
 */
public class OperationChangeChannel implements Operation {
    private Tv tv;
    private String channel;

    public OperationChangeChannel(Tv tv, String channel) {
        this.tv = tv;
        this.channel = channel;
    }

    @Override
    public void execute() {
        // TODO Auto-generated method stub
        tv.changeChannel(channel);
    }

}
